package com.travelcloud.module.product.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 产品添加VO
 *
 * @author Zee
 * @date 2020年6月19日
 */
@Data
@ApiModel
public class ProductInfoAddVo {

    @NotBlank(message = "商品名称不允许为空")
    @ApiModelProperty(value = "商品名称", name = "productName")
    private String productName;

    @Min(value = 0, message = "商品价格不允许为负数")
    @NotNull(message = "商品价格不允许没空")
    @ApiModelProperty(value = "商品价格", name = "productPrice")
    private BigDecimal productPrice;

    @ApiModelProperty(value = "描述", name = "productDescription")
    private String productDescription;

    @ApiModelProperty(value = "上架状态", name = "productStatus")
    private Integer productStatus;
}
